//
//  WWAreadIdBridge.h
//  WhatWeather
//
//  Created by byn on 15/11/28.
//  Copyright © 2015年 byn. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "FMDB.h"


typedef enum : NSUInteger {
    SearchPatternLike,
    SearchPatternMatch,
} SearchPattern;

@interface WWAreadIdBridge : NSObject{
    sqlite3 *database;
    
}
@property (nonatomic,strong) FMDatabase *db;
@property (nonatomic,strong) NSArray *searchArry;
@property (nonatomic,strong) NSString *searchTextWithPatternLike;
@property (nonatomic,strong) NSString *searchTextWithPatternMatch;
+ (WWAreadIdBridge *) getInstance;
-(NSArray *)queryDataWithSearchText: (NSMutableString *)searchText searchPattern: (SearchPattern)searchPattern;
- (NSString *)getFinalString : (NSString *)name ;

@end
